/* Name:	Rio Atmadja
   Program: 	client.cpp
*/

#include "queue_array.h"
#include <iostream>
#include <string>
using namespace std;

int main() {

	queue_array<char> queue; //create a queue object
	string word = "ilovesteak"; //string to be append into the queue

	for(int i=0; i<word.length(); i++) {
		queue.push( word[i] );
	}
	
	queue.print_to_file(); //print to file

	cout << " the content of the queue --> "; queue.print();

	cout << " I'm going to pop the queue " << endl;

	queue.shuffle();//shuffle the queue
	while( !queue.empty() ) {

		cout << queue.first() << endl;
		queue.pop();

	}

	cout << " is this list empty --> " << queue.empty() << endl;
	cout << " the size of the list --> " << queue.length() << endl;
	
}
